<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<select class="selectpicker pacienteFilter" name="consulta.idPaciente" multiple="multiple" required>
	<c:forEach items="${pacientesFilter}" var="paciente">
		<option value="${paciente.id}" <c:if test="${consulta.idPaciente eq paciente.id}">selected</c:if>>
			${paciente.usuario.nome}
		</option>
	</c:forEach>
</select>